@model CreateRoleViewModel
@using OrchardCore.Roles.ViewModels;

<h1>@RenderTitleSegments(T["Create Role"])</h1>

<div asp-validation-summary="ModelOnly"></div>
<form asp-action="Create" method="post">
    <div class="form-group" asp-validation-class-for="RoleName">
        <label asp-for="RoleName">@T["Role name"]</label>
        <input asp-for="RoleName" class="form-control" autofocus />
        <span asp-validation-for="RoleName" class="text-danger">@T["The role name is required."]</span>
    </div>

    <div class="form-group" asp-validation-class-for="RoleDescription">
        <label asp-for="RoleDescription">@T["Role description"]</label>
        <input asp-for="RoleDescription" class="form-control" autofocus />
    </div>

    <div class="form-group">
        <button class="btn btn-primary" type="submit">@T["Create"]</button>
        <a class="btn btn-secondary" asp-route-action="Index">@T["Cancel"]</a>
    </div>
</form>
